package com.glory.gloryquickui.adapter

import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.glory.gloryquickui.R
import com.glory.gloryquickui.entity.FieldBean
import com.glory.gloryquickui.entity.TablePortraitBaseCustomBean

/**
 *Created:YJ
 *创建时间：2021/6/4
 *Describe:
 */
class WorkflowBackInfoAdapter (
    data: ArrayList<TablePortraitBaseCustomBean>?
): BaseQuickAdapter<TablePortraitBaseCustomBean, BaseViewHolder>(R.layout.item_workflowbackinfo,data) {

    override fun convert(holder: BaseViewHolder, item: TablePortraitBaseCustomBean) {
        holder.setText(R.id.jsonName_Tv,item.ID)
        val descRv = holder.getView<RecyclerView>(R.id.descRv)
        val mLayoutManager = LinearLayoutManager(context)
        descRv.layoutManager = mLayoutManager
        val mAdapter = TablePortraitTextAdapter(item.tablelineData)
        descRv.adapter = mAdapter
    }
}